package io.gitee.yth.design.pattern.test.core.pattern.behavioral.iterator.code;

/**
 * @author yth
 * @since 2023-04-26-21:26
 */
public abstract class Organization implements Iterable<Organization> {

    protected String name;
    protected transient int modCount = 0;

    abstract public void printAll();

    public void add(Organization organization) {
        throw new UnsupportedOperationException();
    }

    public void remove(Organization organization) {
        throw new UnsupportedOperationException();
    }

    public Organization getChild(int i) {
        throw new UnsupportedOperationException();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
